package datastructure_algorithm.linkedlist;

import java.util.Random;

public class _Test {

	public static void main(String[] args) {
		LinkedList<Integer> ll = new LinkedList<>();
		Random r = new Random();
		for (int i = 0; i < 5; i++) {
			ll.addFirst(i);
		}
		System.out.println(ll);
		System.out.println(ll.getSize());
		System.out.println(ll.getLast());
		ll.set(3, 666);
		System.out.println(ll);
		System.out.println(ll.remove(2));
		System.out.println(ll);
	}

}
